package com.sea.wechat;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.support.SpringBootServletInitializer;

/**
 * @author wl on 2017-11-17 17:58.
 */
@SpringBootApplication
@ServletComponentScan
public class WechatApplication extends SpringBootServletInitializer{

    public static void main(String[] args) {
        SpringApplication.run(WechatApplication.class,args);
    }

    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(this.getClass());
    }
}
